{extend name='common/common_layout'/}
{block name='source'}
    <link rel="stylesheet" href="__HOME__/css/dd.css">
    <meta name="description" content="{$d.desc}">
    <meta name="keywords" content="{$d.kw}">
{/block}
{block name='title'}
    {$d.title}
{/block}
{block name='center'}
<div class="dd-container">
    <div class="demand-content">
        <div class="demand-title">
            <span>{$d.title}</span>
        </div>
        <div class="demand-desc">
            <div class="demand-desc-item">
                <div class="label">单价:</div>
                {if $d['price'] != 0}
                <div class="item price">{$d.price}</div>
                {else}
                <div class="item price">电议</div>
                {/if}
            </div>
            <div class="demand-desc-item">
                <div class="label">类型:</div>
                <div class="item">{$d.type}</div>
            </div>
            <div class="demand-desc-item">
                <div class="label">规格:</div>
                <div class="item">{$d.size}</div>
            </div>
            <div class="demand-desc-item">
                <div class="label">需求地:</div>
                <div class="item">{$d.origin}</div>
            </div>

            <div class="demand-desc-item">
                <div class="label">发布时间:</div>
                <div class="item">{$d.add_time}</div>
            </div>
        </div>
    </div>
    <button class="layui-btn demand-btn" onclick="get_qr_code()">
        获取买家联系方式
    </button>
    <div class="demand-desc-detail">
        <div class="demand-desc-nav"></div>
        <div class="demand-desc-detail">
            {$d.detail_text|raw}
        </div>
    </div>

    <div class="demand-more-title">
        更多求购信息
    </div>
    <div class="demand-more-item-container">
        {foreach $more as $m}
        <div class="demand-more-item">
            <div class="b1">
                <span class="title">{$m.title}</span>
                <span class="b1-1">
                    <span class="type">{$m.type}</span>
                    <span class="date">{$m.add_time}</span>
                </span>
            </div>
            <div class="b2">
                <span class="size">{$m.size}</span>
                <span class="origin">{$m.origin}</span>
            </div>
            <div class="b3">
                <span class="price">电议</span>
            </div>
            <div class="b4">
                <a href="/?{$m['hash_str']}">
                    <button class="button" type="button">查看更多</button>
                </a>
            </div>
        </div>
        {/foreach}
    </div>
</div>
{/block}
{block name='right'}
    {include file='common/common_last_news'/}
{/block}